{% extends 'base.html' %}
{%block title%}BugList{% endblock %}
<!-- <link rel="stylesheet" href="{{url_for('static',filename='css/bug-list.css')}}" /> -->
{% block css %}
<link rel="stylesheet" href="../static/css/bug-list.css" />
<link rel="stylesheet" href="../static/css/font-awesome.min.css" />
{% endblock %}
{% block js %}
<script type="text/javascript" src="../static/libs/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="../static/js/bug-list.js"></script>
<script type="text/javascript" src="../static/libs/echarts.min.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> -->
<!-- <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/echarts.min.js"></script> -->
{% endblock %}
<!-- <div class="bugLists"> -->
{% block rightcontext %}
{% for bug in bugs %}
<div class="list domain">
    <div class="domain-name">
        <div class="two-p">
            <a href="{{url_for('bugdetail',id=bug.id)}}">
                <i class="fa fa-link"></i>
                <p class="pgr">{{bug.bugurl}}</p>
            </a>
        </div>
        <!-- <div class="three-p">
                <i class="fa fa-clock-o"></i>
                <p>所属: {{bug.oldurl}}</p>
            </div> -->
        <p>所属: {{bug.oldurl}}</p>
        <p>漏洞: {{bug.bugname}}</p>
        <p>漏洞等级: {{bug.buggrade}}</p>
    </div>
    <div class="tab-pane">{{bug.bugdetail}}<br /></div>

</div>
{% endfor %}
<div class="pageNumber">
    <ul>
        <li class="pageLi">
            {% if paginate.has_prev %}
            <button class="pageBtn" style="width:100px" id="prePage"><a
                    href="{{url_for('buglist',page=paginate.prev_num)}}">上一页</a></button>
            {% endif %}
        </li>
        {% for i in paginate.iter_pages() %}
        <li class="pageLi">
            <button class="pageBtn" id="{{ i }}"><a href="{{url_for('buglist',page=i)}}">{{ i }}</a></button>
        </li>
        {% endfor %}
        {% if paginate.has_next %}
        <button class="pageBtn" style="width:100px" id="sufPage"> <a
                href="{{url_for('buglist',page=paginate.next_num)}}">下一页</a></button>
        {% endif %}
        </li>
    </ul>
</div>
</div>{% endblock %}